import axios from '@/libs/api.request'
import server from '@/libs/server'
const prefix = '/marketing/activity/directional'

// 定向券编辑保存
export const saveCoupon = data => server.request({
  url: `${prefix}/create`,
  method: 'post',
  data
})

// 定向券详情查询
export const queryCoupon = data => axios.request({
  url: `${prefix}/get`,
  method: 'post',
  data
})

// 定向券会员筛选
export const memberFilter = data => axios.request({
  url: `${prefix}/member/filter`,
  method: 'post',
  data
})
